using System;

public class BaseViewModel
{
    public event Action<object, string> OnValueChange;

    protected void Set<T>(ref T refVal, T val, string name)
    {
        refVal = val;
        OnValueChange?.Invoke(val, name);
    }
}